package com.pmenergy.view;

import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.RequestScoped;
import javax.faces.bean.SessionScoped;
import javax.faces.bean.ViewScoped;

@SuppressWarnings("unused")
@ManagedBean
@ViewScoped
public class MainMenuBean {

@ManagedProperty(value="#{catalogueBean}")
private CatalogueBean catalogueBean;

@ManagedProperty(value="#{projectBean}")
private ProjectBean projectBean;

private String page="blank";

public CatalogueBean getCatalogueBean(){
	return this.catalogueBean;
}

public void setCatalogueBean(CatalogueBean catalogueBean){
	this.catalogueBean=catalogueBean;
}

public ProjectBean getProjectBean(){
	return this.projectBean;
}

public void setProjectBean(ProjectBean projectBean){
	this.projectBean=projectBean;
}

public String getPage() {
    return page;
}

public void setPage(String page) {
    this.page = page;
}

public void verUsuarios() {
	this.page="catalogos";
	this.getCatalogueBean().verUsuarios();
}

public void verClientes() {
	this.page="catalogos";
	this.getCatalogueBean().verClientes();
}

public void verFormasDePago() {
	this.page="catalogos";
	this.getCatalogueBean().verFormasDePago();
}

public void verItems() {
	this.page="catalogos";
	this.getCatalogueBean().verItems();
}

public void createProject() {
	this.page="nuevoProyecto";
	//this.getProjectBean().ClearLista();
}

public void verEmpresa() {
	this.page="empresa";
    
}

public void verTiposDeItem() {
	this.page="empresa";
    
}

public void verTiposDeProforma() {
	this.page="empresa";
    
}

public void verPeriodosDeAlquiler() {
	this.page="empresa";
    
}

} 